
@echo off
set char=ruoyi-admin.jar
echo char : %char%
set pid=
for /f "usebackq tokens=1-2" %%a in (`jps -l ^| findstr %char%`) do (
        echo find process %%a %%b
        set pid=%%a
)
if defined pid taskkill /f /pid %pid%

pause
